﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
//using PowerCreator.LMS.Logic.Common;
//using PowerCreator.LMS.Logic.Log;

public partial class sysadmin_CourseManager_FileTest : PowerCreator.LMS.Web.Base.BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //{
        //    string url = Base64.Decode(Request.QueryString["url"].ToString());
        //    //string path = Server.MapPath("~/" + url);
        //    string path = url.Replace("/", "\\");       //将地址转换
        //    FileInfoLog log = new FileInfoLog();
        //    log.WriteFile("FileTest$$" + path);
        //    if (File.Exists(path))
        //    {
        //        //string script = "alert('恭喜！文件打开成功！'):window.close();";
        //        Script.Alert(Page, "msg", "恭喜！文件打开成功！");               
        //        return;
        //    }
        //    else
        //    {
        //        Script.Alert(Page, "msg", "对不起！没有找开该文件！");
        //        return;
        //    }
        //}
    }
}
